package org.bleep.physics;

import java.util.Random;
import java.util.Date;

import org.bleep.util.Color;
import org.bleep.geom.Rectangle;

public class ParticleEmitter
{
/*	private int numParticles;
	private Particle[] particles;
	private Vector2D force;
	private Vector2D randomFactor;
	private float x, y;
	private Color minColor, maxColor;
	
	private Random randomizer;
	
	public ParticleEmitter(float x, float y, Vector2D force, Color minColor, Color maxColor)
	{
		this.x = x;
		this.y = y;
		this.minColor = minColor;
		this.maxColor = maxColor;
		this.force = force;
		randomFactor = new Vector2D();
	}
	
	public void init()
	{
		particles = new Particle[numParticles];
		for (int i = 0; i < numParticles; i++)
		{
			float mass = randomizer.nextFloat() * 0.5f + 1.0f;
			Color tempColor = Color.add(Color.mult(Color.sub(maxColor, minColor), randomizer.nextFloat()), minColor);
			particles[i] = new Particle(mass, new Rectangle(x, y, 1f, 1f), tempColor);
		}
	}
	
	public void update()
	{
		for (int i = 0; i < numParticles; i++)
		{
			particles[i].applyForce(force);
			particles[i].update();
		}
	}*/
}